﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caliburn.Micro;
using System.ComponentModel.Composition;
using FamilyShowSource.Models;

namespace FamilyShowSource.ViewModels
{
    [Export(typeof(DetailViewModel))]
    public class DetailViewModel : Conductor<object>
    {
        #region Fields

        /// <summary>
        /// Reference to the FilterText view
        /// </summary>
        public FilterTextViewModel FilterTextViewModel { get; private set; }

        /// <summary>
        /// The current person
        /// </summary>
        public Person CurrentPerson { get; set; }

        #endregion

        #region Constructors

        /// <summary>
        /// This annotation to indicate that this constructor will be used.
        /// With this constructor, Caliburn Micro will execute the following:
        /// - Create instances of the Views and pass to the constructor
        /// </summary>
        /// <param name="filterTextViewModel"></param>
        [ImportingConstructor]
        public DetailViewModel(FilterTextViewModel filterTextViewModel)
        {
            // Refer to the viewmodels
            this.FilterTextViewModel = filterTextViewModel;
        }

        #endregion
    }
}
